/**   
 * @Title: HeMainRefreshCycleInfo.java 
 * @Package com.esun.model 
 * @Description: TODO(合买中心列表刷新周期控制) 
 * @author: Billy Qigs@500wan.com   
 * @date: 2011-12-21 上午11:03:20  
 * Copyright: (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.model;

import com.esun.config.Config;

/**
 * @ClassName: HeMainRefreshCycleInfo
 * @Description: TODO(合买中心列表刷新周期控制)
 * @author: Billy Qigs@500wan.com
 * @date: 2011-12-21 上午11:03:20
 * 
 */
public class HeMaiRefreshCycleInfo {

	private static HeMaiRefreshCycleInfo refreshCycle = null;

	public static HeMaiRefreshCycleInfo getHeMaiRefreshTime() {
		if (refreshCycle == null) {
			return refreshCycle = new HeMaiRefreshCycleInfo();
		} else {
			return refreshCycle;
		}
	}

	// 0-双色球1-福彩3D2-精彩足球3-大乐透4-足彩胜负5-任选9场6-北京单场
	// 0-进度1-战绩2-金额
	private long[] time = new long[7];

	public void resetRefreshTime(int i) {

		time[i] = System.currentTimeMillis();

	}

	public boolean isNeedRefresh(int i) {

		if (System.currentTimeMillis() - time[i] > Config.HEMAILIST_REFRESH_TIME) {
			return true;
		} else {
			return false;
		}

	}

}
